home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Source Code / Mark Pilgrim / Ghost 1.0 / source / Ghost ƒ / MSG Shell ƒ / msg sounds.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-10-30  |  1.6 KB  |  58 lines  |  [TEXT/KAHL]

  1. /**********************************************************************\
  2.  
  3. File:        msg sounds.h
  4.  
  5. Purpose:    This is the header file for msg sounds.c
  6.  
  7.  
  8. Ghost -=- a classic word-building challenge
  9. Copyright (C) 1993 Mark Pilgrim
  10.  
  11. This program is free software; you can redistribute it and/or modify
  12. it under the terms of the GNU General Public License as published by
  13. the Free Software Foundation; either version 2 of the License, or
  14. (at your option) any later version.
  15.  
  16. This program is distributed in the hope that it will be useful,
  17. but WITHOUT ANY WARRANTY; without even the implied warranty of
  18. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  19. GNU General Public License for more details.
  20.  
  21. You should have received a copy of the GNU General Public License
  22. along with this program in a file named "GNU General Public License".
  23. If not, write to the Free Software Foundation, 675 Mass Ave,
  24. Cambridge, MA 02139, USA.
  25.  
  26. \**********************************************************************/
  27.  
  28. #include <Sound.h>
  29.  
  30. #define NUM_SOUNDS        11
  31.  
  32. enum
  33. {
  34.     sound_play_letter = 1000,
  35.     sound_male_drat,
  36.     sound_female_drat,
  37.     sound_male_shoot,
  38.     sound_female_shoot,
  39.     sound_raz,
  40.     sound_aboutMSG,
  41.     sound_virgin,
  42.     sound_on,
  43.     sound_fluff,
  44.     sound_joy
  45. };
  46.  
  47. extern    SndChannelPtr        myChannel;
  48. extern    Handle                MySounds[NUM_SOUNDS];
  49. extern    unsigned char        gSoundToggle;
  50. extern    Boolean                gSoundAvailable;
  51.  
  52. OSErr OpenTheSoundDevice(void);
  53. void CloseTheSoundDevice(void);
  54. pascal Boolean ProcOFilter(DialogPtr dialog, EventRecord *event, short *item);
  55. void InitSounds(void);
  56. void DoSound(int, Boolean);
  57. void CloseSounds(void);
  58.